package com.go.where.family.component;

import java.util.List;

import com.go.where.family.pojo.CustomerCommentInfo;
import com.go.where.family.pojo.FamilySquareInfo;
import com.go.where.family.pojo.MessageInfo;
import com.go.where.family.scoket.Head;

/**
 * 消息信息组件
 * 
 * @author java
 * 
 */
public interface MessageComponent {

	/**
	 * 分页查询系统消息列表
	 * 
	 * @param body
	 * @param head
	 * @return
	 */
	public List<MessageInfo> querySystemList(String body, Head head);

	/**
	 * 查询系统消息详情
	 * 
	 * @param body
	 * @param head
	 * @return
	 */
	public MessageInfo querySystemDetail(String body, Head head);

	/**
	 * 查询在家族广场中自己发的留言
	 * 
	 * @param body
	 * @param head
	 * @return
	 */
	public List<FamilySquareInfo> querySendMessageOfMine(String body, Head head);

	/**
	 * 查询在家族广场中别人发给我的留言
	 * 
	 * @param body
	 * @param head
	 * @return
	 */
	public List<CustomerCommentInfo> queryReceivedMessageOfMine(String body, Head head);

	/**
	 * 删除
	 * 
	 * @param body
	 * @param head
	 * @return
	 */
	public boolean delete(String body, Head head);

	/**
	 * 全部删除
	 * 
	 * @param body
	 * @param head
	 * @return
	 */
	public boolean deleteAll(String body, Head head);

}
